Graphics.StringDirection Method
Returns an Integer that indicates the direction in which the text is written. This is useful for non-Roman systems, especially Middle-Eastern languages.
Syntax
Graphics.StringDirection Text
Parameters | |
Text |
If you pass an empty string, it returns the system default string direction. If REALbasic doesn't support this function on the user's system, it will return -1; otherwise it will return either 0 for left to right or 1 or right to left. There are three class constants that you can use to test the string direction:
TextDirectionUnknown: -1
TextDirectionLeftToRight: 0
TextDirectionRightToLeft: 1